home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_11_08
/
1108109a
< prev
next >
Wrap
Text File
|
1993-06-07
|
394b
|
21 lines
/* ptr2ptr.c: Pointers to pointers */
#include <stdio.h>
main()
{
int i = 7;
int *ip = &i;
int **ipp = &ip;
printf("Address %p (i) contains %d\n",ip,*ip);
printf("Address %p (ip) contains %p\n",ipp,*ipp);
printf("**ipp == %d\n",**ipp);
return 0;
}
/* OUTPUT:
* Address FFF4 (i) contains 7
* Address FFF2 (ip) contains FFF4
* **ipp == 7 */